from attr import dataclass


@dataclass
class User:
    id: int
    username: str
    email: str
    status: int

    def to_dict(self):
        return {
            "id": self.id,
            "username": self.username,
            "email": self.email
        }
